// pages/mytool/mytool.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    routers: [
      {
        name: '扫一扫',
        url: '/pages/scanqr/scanqr',
        icon: '/images/sao_sel.png',
        code: '10'
      },
      {
        name: '拍照',
        url: '/pages/photogra/photogra',
        icon: '/images/photo.png',
        code: '11'
      },
      {
        name: '地图',
        url: '/pages/mymap/mymap',
        icon: '/images/map.png',
        code: '10'
      },
      {
        name: '救我',
        url: '/pages/mycall/mycall',
        icon: '/images/jiuwo.png',
        code: '11'
      },
      {
        name: '搜索',
        url: '/pages/mysousuo/mysousuo',
        icon: '/images/sousuo.png',
        code: '10'
      },
      {
        name: '添加联系人',
        url: '/pages/mycontacts/contacts',
        icon: '/images/addp.png',
        code: '11'
      },
      {
        name: '听音乐',
        url: '/pages/myvideo/myvideo',
        icon: '/images/yinyue.png',
        code: '10'
      },
      {
        name: '指南针',
        icon: '/images/znz.png',
        url: '/pages/myznz/myznz',
        code: '11'
      },
      {
        name: '学习',
        url: '/pages/myinfo/myinfo',
        icon: '/images/xuexi.png',
        code: '10'
      }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})